﻿using System.Web.UI;

namespace PortalCurriculo.WebUI.UserControls.Basico
{
    public partial class Label : UserControl
    {
        public string Value
        {
            get { return LabelEditavel.Text; }
            set { LabelEditavel.Text = value; }
        }

        public string LabelText
        {
            get { return LabelEditavel.Text; }
            set
            {
                LabelFixo.Visible = true;
                LabelFixo.Text = value;
            }
        }

        protected override void Render(HtmlTextWriter writer)
        {
            LabelFixo.AssociatedControlID = LabelEditavel.ID;
            base.Render(writer);
        }
    }
}
